<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link href="<?php echo Yii::app()->baseUrl;?>/themes/<?php echo Yii::app()->theme->name;?>/css/admin/main.css" type="text/css" rel="stylesheet" />
<title>YiiBook.com - Home</title>
</head>
<body>
<div  id="HomePageView" class="PageView" style="overflow: auto;">
<div  id="YDefaultView" style="overflow: auto;">
<div  class="GridView" style="overflow: auto;">
<div>
  <div  id="HeaderView" style="overflow: auto;">
    <div id="MainLogo" class="yiibook-logo"></div>
    <div  class="GridView" style="overflow: auto;">
      <div>
        <div  id="HeaderLinksView" style="overflow: auto;">
          <div>
            <ul>
              <li>您好, <b><?php Yii::app()->user->name;?></b></li>
              <li><?php echo CHtml::link('退出', array('account/login'));?></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    </div>
</div>
<div>
  <div id="MenuView" style="">
    <div class="nav-container">
      <div class="nav-bar">
                
					<ul class="nav">
						<li class="parent"><?php echo CHtml::link('主页', array('default/index'));?>
							<ul>
								<li class="last"><?php echo CHtml::link('<span>控制台</span>', array('default/index'));?></li>
							</ul>
						</li>
						<li class="parent"><?php echo CHtml::link('书籍', array('book/index'));?>
							<ul>
								<li><?php echo CHtml::link('<span>新建书籍</span>', array('book/create'));?></li>
								<li class="last"><?php echo CHtml::link('<span>书籍管理</span>', array('book/index'));?></li>
							</ul>
						</li>
						<li class="parent"><?php echo CHtml::link('<span>帐户</span>', array('account/index'));?></a>
							<ul>
							<li><?php echo CHtml::link('<span>新建帐户</span>', array('account/create'));?></li>
							<li class="last"><?php echo CHtml::link('<span>帐户管理</span>', array('account/index'));?></li>
							</ul>
						</li>
					</ul>
      </div>
    </div>
  </div>
</div>

<?php echo $content;?>
<?php echo $this->renderPartial('/layouts/_footer');?>
</div></div></div>
<?php Yii::app()->getClientScript()->registerScript('nav', '
$(".nav li").hover(
	function () {
		if ($(this).hasClass("parent")) {
			$(this).addClass("over");
		}
	},
	function () {
		$(this).removeClass("over");
	}
);
');

Yii::app()->getClientScript()->registerScriptFile(Yii::app()->baseUrl.'/themes/'.Yii::app()->theme->name.'/css/admin/scrolltopcontrol.js', CClientScript::POS_END);
?>
</body></html>
